<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
//	response.setContentType("application/x-download");
	response.setContentType("application/vnd.ms-excel");
	String title = request.getParameter("title");
	title = new String( title.getBytes("UTF-8"), "iso8859-1"); // 
	response.setHeader("Content-disposition","attachment; filename="+title+".xls"); 
%>

<html>
<head>
	<title>${title }</title>
	<link href="css/common.css" rel="stylesheet" />
	
	<style>
		#mytable {   
		    padding: 0;
		    margin: 0;   
		    border-collapse:collapse;
		}
		table{
			width:95%;
		}
		td {
		    border: 1px solid #C1DAD7;   
		    background: #fff;
		    font-size:11px;
		    padding: 6px 6px 6px 12px;
		    color: #4f6b72;
		}
		
		td.alt {
		    background: #F5FAFA;
		    color: #797268;
		}
	</style>
</head>
<body>

	<%=request.getAttribute("data")%>

</body>
</html>
